<project name="lastfm-model" default="all">

    <path id="jaxb-classpath">
        <fileset dir="nostalgia/lib/jaxb-ri-2.1" includes="*.jar"/>
    </path>

    <path id="classpath">
        <path refid="jaxb-classpath"/>
    </path>

    <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
        <classpath refid="classpath"/>
    </taskdef>

    <target name="all" depends="clean,xjc"/>

    <target name="xjc">
        <xjc
          schema="lastfm.xsd"
          package="nostalgia.lastfm.model"
          destdir="nostalgia/src"/>
    </target>

    <target name="clean">
        <delete dir="nostalgia/src/nostalgia/lastfm/model" includes="*.*"/>
    </target>

</project>
